home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / vla / dir_vla / d.asm < prev    next >
Encoding:
Assembly Source File  |  1993-09-15  |  822 b   |  35 lines

  1.     IDEAL
  2.     p386
  3.     
  4. SEGMENT _Text byte public 'CODE' USE16
  5.     assume CS:_Text
  6.  
  7.     ORG 100h
  8.  
  9. EntryPoint:
  10.     jmp     START
  11. ────────────────────────────────────────────────────────────────────────────
  12. INCLUDE "D.INC"
  13. ────────────────────────────────────────────────────────────────────────────
  14. START:
  15.     mov     ax,cs               ;NOTE: ES= PSP segment
  16.     mov     ds,ax
  17.     mov     bx,[es:2ch]         ;Grab environment segment at offset 2ch
  18.     mov     [ENVseg],bx
  19.     mov     bx,es
  20.     mov     [PSPseg],bx
  21.     add     bx,80h/16           ;Make a seg pointing to the DTA
  22.     mov     [DTAseg],bx
  23.     mov     es,ax               ;set ES to CS
  24.  
  25.     call    DisplayDirectory
  26.  
  27.     call    PrintEntries
  28.  
  29.     call    PrintStats
  30.  
  31.     mov     ax,4c00h
  32.     int     21h
  33. ENDS
  34. END EntryPoint
  35.